#ifndef MEMBERVAR_H
#define MEMBERVAR_H

#include "node.h"
#include "type.h"

class MemberVar : public Node
{
public:
    MemberVar(const QString& name, const QString& expr, const Type& type, const YYLTYPE& loc);

    QString name() const { return m_name; }
    QString initialValue() const { return m_expr; }

    virtual Type type();

private:
    QString m_name;
    QString m_expr;
    Type m_type;
};

#endif // MEMBERVAR_H
